package com.ruoyi.standingbook.v2toilet;

/**
 * 用于判断
 */
public enum ItemEnum {
    IO5("opened", "opened", "公厕正常开放", 5),
    IO6("logo", "logo", "公共洗手间标识", 6),
    IO7("ventilate", "ventilate", "通风除臭", 7),
    IO8("handBasin", "hand_basin", "洗手盆（台）", 8),
    IO9("waterFaucet", "water_faucet", "水龙头", 9),
    I10("handry", "handry", "擦手纸或干手机", 10),
    I11("handSanitizer", "hand_sanitizer", "洗手液", 11),
    I12("masks", "masks", "面镜", 12),
    I13("floor", "floor", "地面", 13),
    I14("wallspace", "wallspace", "窗户、墙壁", 14),
    I15("ceiling", "ceiling", "天花板", 15),
    I16("lights", "lights", "照明设施", 16),
    I17("innerClean", "inner_clean", "厕内整洁", 17),
    I18("cubicle", "cubicle", "厕门、厕位隔断", 18),
    I19("cubicleTissue", "cubicle_tissue", "厕间纸巾", 19),
    I20("toilet", "toilet", "大小便器", 20),
    I21("roomClean", "room_clean", "厕间干净", 21),
    I22("flushing", "flushing", "冲水设备", 22),
    I23("grabar", "grabar", "大便厕位安全扶手", 23),
    I24("hardware", "hardware", "手纸架、挂钩、搁物板", 24),
    I25("childHandBasin", "child_hand_basin", "儿童洗手盆", 25),
    I26("barrierfreeFacilities", "barrierfree_facilities", "无障碍设施", 26),
    I27("babyCareRoom", "baby_care_room", "母婴室", 27),
    ;
    public final String attr;
    public final String column;
    public final String note;
    public final int index;

    ItemEnum(String attr, String column, String note, int index) {
        this.attr = attr;
        this.column = column;
        this.note = note;
        this.index = index;
    }

    public static ItemEnum getColumnByAttr(String attr) {
        for (ItemEnum t : ItemEnum.values()) {
            if (t.attr.equalsIgnoreCase(attr))
                return t;
        }
        return null;
    }
}
